using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Pcme.Info.MvcMusicStore.Models {
    
    
    public partial class OrderDetailMap : ClassMap<OrderDetail> {
        
        public OrderDetailMap() {
			Table("OrderDetail");
			LazyLoad();
			Id(x => x.OrderDetailId).GeneratedBy.Identity().Column("OrderDetailId");
			References(x => x.Order).Column("OrderId");
			References(x => x.Album).Column("AlbumId");
			Map(x => x.Quantity).Not.Nullable().Column("Quantity");
			Map(x => x.UnitPrice).Not.Nullable().Column("UnitPrice");
        }
    }
}
